package com.iking.housekeeping.service.romenu;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.iking.housekeeping.dao.rolemenu.RoleMenuMapper;
import com.iking.housekeeping.entity.rolemenu.RoleMenu;

/**
 * 
 * @author Administrator
 *
 */
@Service
public class RoleMenuService {
	
	@Autowired
	private RoleMenuMapper roleMenuMapper;
	
	/**
	 * 添加信息
	 * @param depts
	 * @return
	 */
	public int insertRoleMenu(List<RoleMenu> depts) {
		return roleMenuMapper.insertSelectiveList(depts);
	}
	
	/**
	 * 根据角色ID删除关联表
	 * @param roleId
	 * @return
	 */
	public int delRoleMenuByRoleId(String roleId) {
		return roleMenuMapper.delRoleMenuByRoleId(roleId);
	}
}
